.color-extractor-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #0064ff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 100, 255, 0.05);
}

.drop-zone:hover {
    background-color: rgba(0, 100, 255, 0.1);
}

.drop-zone.drag-over {
    background-color: rgba(0, 100, 255, 0.15);
    border-color: #0050cc;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-container {
    margin-bottom: 15px;
    color: #0064ff;
}

.drop-zone p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.file-input {
    display: none;
}

/* Preview Section */
.preview-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.reset-button {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background-color: #e5e5e5;
    color: #333;
}

.preview-image-container {
    display: flex;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-box {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.color-box:hover {
    transform: scale(1.05);
    z-index: 1;
}

.color-value {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.control-group label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    color: #444;
}

.gradient-direction,
.blend-mode {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.color-count {
    width: 150px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #9ad7ff, #0064ff);
    outline: none;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.color-count::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0064ff;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.color-count::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0064ff;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.color-count-value {
    font-size: 14px;
    color: #333;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 10px;
}

.apply-button,
.copy-button {
    background-color: #0064ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.apply-button:hover,
.copy-button:hover {
    background-color: #0050cc;
}

/* Result Section */
.result-section {
    margin-top: 30px;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
}

/* 新的并排卡片布局 */
.result-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.result-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #fff;
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.result-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.export-button,
.copy-css-button {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.export-button:hover {
    background-color: #2d995b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.copy-css-button:hover {
    background-color: #3182ce;
}

.css-code {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #eaeaea;
    border-bottom: 1px solid #ddd;
}

.code-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.copy-code-button {
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-code-button:hover {
    background-color: #f5f5f5;
    color: #333;
}

.css-code pre {
    margin: 0;
    padding: 15px;
    white-space: pre-wrap;
    word-break: break-all;
}

.css-code-content {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    color: #333;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .result-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .result-cards-container {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        flex-wrap: wrap;
    }

    .color-box {
        width: 60px;
        height: 60px;
    }

    .preview-header {
        flex-direction: column;
        gap: 10px;
    }
}

.blend-opacity-value {
    font-size: 14px;
    color: #333;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 10px;
}

/* Blend mode styles */
.blend-overlay {
    mix-blend-mode: normal;
}

.blend-cutout {
    width: 70%;
    height: 70%;
    margin: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blend-frame {
    width: 80%;
    height: 80%;
    margin: auto;
    background-color: white;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.blend-side-by-side {
    width: 50%;
    left: 50%;
    background-color: white;
}

.blend-side-by-side .result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make the export buttons stand out more */
.export-button {
    background-color: #38c172;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

